import { createSSRApp } from "vue";
import App from "./App.vue";
import { setupStore } from 'src/plugins/pinia';
import { registerLang } from 'src/plugins/language';
import { init } from 'src/plugins/init';
import zMenu from 'src/components/zMenu';
import zCanvasWatermark from 'src/components/zCanvasWatermark';
import zNav from 'src/components/zNav';
import zLayout from 'src/components/zLayout';
export function createApp() {
	const app = createSSRApp(App);
	app.component('zMenu',zMenu)
	app.component('zCanvasWatermark',zCanvasWatermark)
	app.component('zNav',zNav)
	app.component('zLayout',zLayout)
	init(app);
	setupStore(app);
	registerLang(app);
	return {
		app,
	};
}